/*
 * ApplicationCloseAction.java
 *
 * Created on 06 May 2007, 13:37
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package org.cardcopier.ui;

import java.awt.Frame;
import java.awt.event.ActionEvent;
import java.io.IOException;
import javax.swing.AbstractAction;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
import org.cardcopier.CardCopierModel;
import org.cardcopier.ConfigFile;

/**
 *
 * @author Mark
 */
public class ExitAction extends AbstractAction {
    
    private final JFrame frame;
    
    public ExitAction(JFrame frame) {
        super("Exit");
        this.frame = frame;
    }

    public void actionPerformed(ActionEvent e) {
        frame.setVisible(false);
        frame.dispose();
    }
    
}
